﻿namespace CTP.CRM.Core.Localization
{
    internal class RedisResourceOptions
    {
        public string SystemName { get; private set; }

        public int DBIndex { get; private set; }

        public string KeyPrefix { get; private set; }

        public RedisResourceOptions(string systemName, int dBIndex, string keyPrefix)
        {
            SystemName = systemName;
            DBIndex = dBIndex;
            KeyPrefix = keyPrefix;
        }

        public override string ToString()
        {
            return $"{SystemName}:{DBIndex}:{KeyPrefix}";
        }
    }
}
